const mongoose = require('mongoose');

let AccountsSchema = mongoose.Schema({
    title:{
        type:String,
        required:true
    },
    time:Date,
    money:{
        type:Number
    },
    type:{
        type:Number,
        default:-1
    },
    remarks:String
});
//创建模板对象
let AccountsModel = mongoose.model('accounts', AccountsSchema);

module.exports = AccountsModel;